package cn.edu.example.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import cn.edu.example.dao.StudentDao;
import cn.edu.example.dao.Train_appointDao;
import cn.edu.example.po.Train_appoint;
import cn.edu.example.service.Train_appointService;

@Service("train_appointService")
@Transactional
public class Train_appointServiceImpl implements Train_appointService{
	@Autowired
	private Train_appointDao train_appointDao;
	
	@Override
	public List<Train_appoint> getTrainbyID(Integer student_id) {
		// TODO Auto-generated method stub
		return this.train_appointDao.getTrainbyID(student_id);
	}

	@Override
	public Integer createTrain(Train_appoint train_appoint) {
		// TODO Auto-generated method stub
		return this.train_appointDao.createTrain(train_appoint);
	}

	@Override
	public Integer cancelTrain(Integer id) {
		// TODO Auto-generated method stub
		return this.train_appointDao.cancelTrain(id);
	}

}
